package com.hwx.redis.controller;

import com.hwx.app.redis.starter.util.RedisUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class UseRedisController {

    @Resource
    private RedisUtil<String> redisUtil;

    @GetMapping("/set_value")
    public void test() {
        redisUtil.set("test", "test");
    }
}
